package com.hopu.oa.service.notice;

import com.hopu.oa.entity.management.AoaStatusList;
import com.hopu.oa.entity.management.AoaTypeList;
import com.hopu.oa.entity.notice.AoaNoticeList;
import com.hopu.oa.entity.notice.AoaNoticeUserRelation;
import com.hopu.oa.entity.user.AoaUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeManageService {

    List<AoaNoticeList> queryNoticeListById(@Param("id") int id, @Param("title") String title, @Param("index") int index, @Param("size") int size);

    List<AoaTypeList> findTypeList();

    List<AoaStatusList> findStatusList();

    AoaNoticeList queryNoticeList(int id);

    int addNoticeList(AoaNoticeList noticeList);

    int addaddNoticeUser(AoaNoticeUserRelation noticeUserRelation);

    int updateNoticeList(AoaNoticeList noticeList);

    int deleteNoticeList(int id);

    int deleteNoticeUser(int id);


    //转发通知
    boolean forwardInform(AoaNoticeList queryNoticeList, AoaUser aoaUser);

    boolean setNoticeUserByUserIdAndNoticeId(Integer userId, Integer noticeId);
}
